<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/gVerify.js"></script>
    
</head>
<body>
    <span id="codeImg"></span>

    <script>
       var res= new GVerify({
            id:"codeImg",//容器的id值
            type: "blend"// 图形验证码默认类型blend:数字字母混合类型、number:纯数字、letter:纯字母
        });
        // console.log(res.options.code);
        console.log(res.validate("aaaa"));//直接验证"aaaa"是否是验证码生成的值一致
    </script>
</body>
</html>